home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / DateFormatZoneData_en.java < prev    next >
Text File  |  1998-09-22  |  13KB  |  270 lines

  1. /*
  2.  * @(#)DateFormatZoneData_en.java    1.7 98/01/12
  3.  *
  4.  * (C) Copyright Taligent, Inc. 1996 - All Rights Reserved
  5.  * (C) Copyright IBM Corp. 1996 - All Rights Reserved
  6.  *
  7.  * Portions copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
  8.  *
  9.  *   The original version of this source code and documentation is copyrighted
  10.  * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
  11.  * materials are provided under terms of a License Agreement between Taligent
  12.  * and Sun. This technology is protected by multiple US and International
  13.  * patents. This notice and attribution to Taligent may not be removed.
  14.  *   Taligent is a registered trademark of Taligent, Inc.
  15.  *
  16.  * Permission to use, copy, modify, and distribute this software
  17.  * and its documentation for NON-COMMERCIAL purposes and without
  18.  * fee is hereby granted provided that this copyright notice
  19.  * appears in all copies. Please refer to the file "copyright.html"
  20.  * for further important copyright and licensing information.
  21.  *
  22.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  23.  * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  24.  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  25.  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  26.  * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  27.  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  28.  *
  29.  */
  30.  
  31. package java.text.resources;
  32.  
  33. import java.util.ListResourceBundle;
  34.  
  35. /**
  36.  * Supplement package private date-time formatting zone data for DateFormat.
  37.  * DateFormatData used in DateFormat will be initialized by loading the data
  38.  * from LocaleElements and DateFormatZoneData resources. The zone data are
  39.  * represented with the following form:
  40.  * {ID, long zone string, short zone string, long daylight string,
  41.  * short daylight string, representative city of zone}, where ID is
  42.  * NOT localized, but is used to look up the localized timezone data
  43.  * internally. Localizers can localize any zone strings except
  44.  * for the ID of the timezone.
  45.  
  46.  * @see          ListResourceBundle
  47.  * @see          Format
  48.  * @see          DateFormatData
  49.  * @see          LocaleElements
  50.  * @see          SimpleDateFormat
  51.  * @see          TimeZone
  52.  * @version      1.4 01/27/97
  53.  * @author       Chen-Lieh Huang
  54.  * @author       Alan Liu
  55.  */
  56. //  US DateFormatZoneData
  57. //
  58. public final class DateFormatZoneData_en extends ListResourceBundle
  59. {
  60.     /**
  61.      * Overrides ListResourceBundle
  62.      */
  63.     public Object[][] getContents() {
  64.         return contents;
  65.     }
  66.  
  67.     private static final String kZoneStrings[][] = {
  68.         // Zones should have unique names and abbreviations within this locale.
  69.         // Names and abbreviations may be identical if the corresponding zones
  70.         // really are identical.  E.g.: America/Phoenix and America/Denver both
  71.         // use MST; these zones differ only in that America/Denver uses MDT as
  72.         // well.
  73.         //
  74.         // We list both short and long IDs.  Short IDs come first so that they
  75.         // are chosen preferentially during parsing of zone names.
  76.         //
  77.         // ar
  78.         //{"Africa/Cairo", "Egypt Standard Time", "EET",
  79.         // "Egypt Daylight Time", "EEST" /*Cairo*/}
  80.         // be
  81.         //{"Europe/Minsk", "Eastern European Standard Time", "EET",
  82.         // "Eastern European Daylight Time", "EEST" /*Minsk*/}
  83.         // bg
  84.         //{"Europe/Bucharest", "Eastern European Standard Time", "EET",
  85.         // "Eastern European Daylight Time", "EEST" /*Sofia*/}
  86.         // ca
  87.         //{"Europe/Paris", "Central European Standard Time", "CET",
  88.         // "Central European Daylight Time", "CEST" /*Madrid*/}           
  89.         // cs
  90.         //{"ECT", "Central European Standard Time", "CEST",
  91.         // "Central European Daylight Time", "CEDT" /*Prague*/},
  92.         // da
  93.         //{"ECT", "Central European Standard Time", "CEST",
  94.         // "Central European Daylight Time", "CEDT" /*Copenhagen*/},
  95.         // de
  96.         //{"ECT", "Central European Standard Time", "CEST",
  97.         // "Central European Daylight Time", "CEDT" /*Berlin*/},
  98.         // de_AT
  99.         //{"ECT", "Central European Standard Time", "CEST",
  100.         // "Central European Daylight Time", "CEDT" /*Vienna*/},
  101.         // de_CH
  102.         //{"ECT", "Central European Standard Time", "CEST",
  103.         // "Central European Daylight Time", "CEDT" /*Zurich*/},
  104.         // el
  105.         //{"Europe/Istanbul", "Eastern European Standard Time", "EET",
  106.         // "Eastern European Daylight Time", "EEST" /*Athens*/},
  107.         // en
  108.         {"PST" /*--America/Los_Angeles--*/, "Pacific Standard Time", "PST",
  109.          "Pacific Daylight Time", "PDT" /*San Francisco*/},
  110.         {"America/Los_Angeles", "Pacific Standard Time", "PST",
  111.          "Pacific Daylight Time", "PDT" /*San Francisco*/},
  112.         {"MST" /*--America/Denver--*/, "Mountain Standard Time", "MST",
  113.          "Mountain Daylight Time", "MDT" /*Denver*/},
  114.         {"America/Denver", "Mountain Standard Time", "MST",
  115.          "Mountain Daylight Time", "MDT" /*Denver*/},
  116.         {"PNT" /*--America/Phoenix--*/, "Mountain Standard Time", "MST",
  117.          "Mountain Standard Time", "MST" /*Phoenix*/},
  118.         {"America/Phoenix", "Mountain Standard Time", "MST",
  119.          "Mountain Standard Time", "MST" /*Phoenix*/},
  120.         {"CST" /*--America/Chicago--*/, "Central Standard Time", "CST",
  121.          "Central Daylight Time", "CDT" /*Chicago*/},
  122.         {"America/Chicago", "Central Standard Time", "CST",
  123.          "Central Daylight Time", "CDT" /*Chicago*/},
  124.         {"EST" /*--America/New_York--*/, "Eastern Standard Time", "EST",
  125.          "Eastern Daylight Time", "EDT" /*New York*/},
  126.         {"America/New_York", "Eastern Standard Time", "EST",
  127.          "Eastern Daylight Time", "EDT" /*New York*/},
  128.         {"IET" /*--America/Indianapolis--*/, "Eastern Standard Time", "EST",
  129.          "Eastern Standard Time", "EST" /*Indianapolis*/},
  130.         {"America/Indianapolis", "Eastern Standard Time", "EST",
  131.          "Eastern Standard Time", "EST" /*Indianapolis*/},
  132.         {"HST" /*--Pacific/Honolulu--*/, "Hawaii Standard Time", "HST",
  133.          "Hawaii Standard Time", "HST" /*Honolulu*/},
  134.         {"Pacific/Honolulu", "Hawaii Standard Time", "HST",
  135.          "Hawaii Standard Time", "HST" /*Honolulu*/},
  136.         {"AST" /*--America/Anchorage--*/, "Alaska Standard Time", "AKST",
  137.          "Alaska Daylight Time", "AKDT" /*Anchorage*/},
  138.         {"America/Anchorage", "Alaska Standard Time", "AKST",
  139.          "Alaska Daylight Time", "AKDT" /*Anchorage*/},
  140.         // en_CA
  141.         {"America/Halifax", "Atlantic Standard Time", "AST",
  142.          "Atlantic Daylight Time", "ADT" /*Halifax*/},  
  143.         {"CNT" /*--America/St_Johns--*/, "Newfoundland Standard Time",
  144.          "NST", "Newfoundland Daylight Time", "NDT" /*St. John's*/},
  145.         {"America/St_Johns", "Newfoundland Standard Time",
  146.          "NST", "Newfoundland Daylight Time", "NDT" /*St. John's*/},
  147.         // es
  148.         //{"ECT", "Central European Standard Time", "CEST",
  149.         // "Central European Daylight Time", "CEDT" /*Madrid*/},
  150.         // et
  151.         //{"EET", "Eastern European Standard Time", "EEST",
  152.         // "Eastern European Daylight Time", "EEDT" /*Tallinn*/},
  153.         // fi
  154.         //{"EET", "Eastern European Standard Time", "EEST",
  155.         // "Eastern European Daylight Time", "EEDT" /*Helsinki*/},
  156.         // fr
  157.         {"ECT" /*--Europe/Paris--*/, "Central European Standard Time",
  158.          "CET", "Central European Daylight Time", "CEST" /*Paris*/},
  159.         {"Europe/Paris", "Central European Standard Time", "CET",
  160.          "Central European Daylight Time", "CEST" /*Paris*/},
  161.         // fr_BE
  162.         //{"ECT", "Central European Standard Time", "CEST",
  163.         // "Central European Daylight Time", "CEDT" /*Brussels*/},
  164.         // fr_CA
  165.         // fr_CH
  166.         //{"ECT", "Central European Standard Time", "CEST",
  167.         // "Central European Daylight Time", "CEDT" /*Geneva*/},
  168.         // hr
  169.         //{"ECT", "Central European Standard Time", "CEST",
  170.         // "Central European Daylight Time", "CEDT" /*Zagreb*/},
  171.         // hu
  172.         //{"ECT", "Central European Standard Time", "CEST",
  173.         // "Central European Daylight Time", "CEDT" /*Budapest*/},
  174.         // is
  175.         {"GMT", "Greenwich Mean Time", "GMT", 
  176.          "Greenwich Mean Time", "GMT" /*Reykjavik*/},
  177.         {"Africa/Casablanca", "Greenwich Mean Time", "GMT",
  178.          "Greenwich Mean Time", "GMT" /*Reykjavik*/},
  179.         // it
  180.         //{"ECT", "Central European Standard Time", "CEST",
  181.         // "Central European Daylight Time", "CEDT" /*Rome*/},
  182.         // it_CH
  183.         //{"ECT", "Central European Standard Time", "CEST",
  184.         // "Central European Daylight Time", "CEDT" /*Zurich*/},
  185.         // iw
  186.         {"Asia/Jerusalem", "Israel Standard Time", "IST",
  187.          "Israel Daylight Time", "IDT" /*Tel Aviv*/},
  188.         // ja
  189.         {"JST" /*--Asia/Tokyo--*/, "Japan Standard Time",
  190.          "JST", "Japan Standard Time", "JST" /*Tokyo*/},
  191.         {"Asia/Tokyo", "Japan Standard Time", "JST",
  192.          "Japan Standard Time", "JST" /*Tokyo*/},
  193.         // ko
  194.         //{"JST" /*--Asia/Tokyo--*/, "Korea Standard Time",
  195.         // "KST", "Korea Standard Time", "KST" /*Seoul*/},
  196.         // lt
  197.         //{"EET", "Eastern European Standard Time", "EEST",
  198.         // "Eastern European Daylight Time", "EEDT" /*Vilnius*/},
  199.         // lv
  200.         //{"Europe/Riga", "Eastern European Standard Time",
  201.         // "EET", "Eastern European Daylight Time", "EEST" /*Riga*/},
  202.         // mk
  203.         //{"ECT", "Central European Standard Time", "CEST",
  204.         // "Central European Daylight Time", "CEDT" /*Skopje*/},
  205.         // nl
  206.         //{"ECT", "Central European Standard Time", "CEST",
  207.         // "Central European Daylight Time", "CEDT" /*Amsterdam*/},
  208.         // nl_BE
  209.         //{"ECT", "Central European Standard Time", "CEST",
  210.         // "Central European Daylight Time", "CEDT" /*Brussels*/},
  211.         // no
  212.         //{"ECT", "Central European Standard Time", "CEST",
  213.         // "Central European Daylight Time", "CEDT" /*Oslo*/},
  214.         // no_NO_NY
  215.         //{"ECT", "Central European Standard Time", "CEST",
  216.         // "Central European Daylight Time", "CEDT" /*Oslo*/},
  217.         // pl
  218.         //{"Europe/Warsaw", "Central European Standard Time",
  219.         // "CET", "Central European Daylight Time", "CEST" /*Warsaw*/},
  220.         // pt
  221.         //{"ECT", "Central European Standard Time", "CEST",
  222.         // "Central European Daylight Time", "CEDT" /*Lisbon*/},
  223.         // ro
  224.         {"Europe/Bucharest", "Eastern European Standard Time",
  225.          "EET", "Eastern European Daylight Time", "EEST" /*Bucharest*/},
  226.         // ru
  227.         //{"EET", "Eastern European Standard Time", "EEST",
  228.         // "Eastern European Daylight Time", "EEDT" /*Unknown*/},
  229.         // sh
  230.         //{"Europe/Paris", "Central European Standard Time",
  231.         // "CET", "Central European Daylight Time", "CEST" /*Paris*/}        
  232.         // sk
  233.         //{"ECT", "Central European Standard Time", "CEST",
  234.         // "Central European Daylight Time", "CEDT" /*Paris*/},
  235.         // sl
  236.         //{"ECT", "Central European Standard Time", "CEST",
  237.         // "Central European Daylight Time", "CEDT" /*Ljubljana*/},
  238.         // sq
  239.         //{"ECT", "Central European Standard Time", "CEST",
  240.         // "Central European Daylight Time", "CEDT" /*Tirana*/},
  241.         // sr
  242.         //{"ECT", "Central European Standard Time", "CEST",
  243.         // "Central European Daylight Time", "CEDT" /*Paris*/},
  244.         // sv
  245.         //{"ECT", "Central European Standard Time", "CEST",
  246.         // "Central European Daylight Time", "CEDT" /*Stockholm*/},
  247.         // tr
  248.         //{"EET", "Eastern European Standard Time", "EEST",
  249.         // "Eastern European Daylight Time", "EEDT" /*Ankara*/},
  250.         // uk
  251.         //{"EET", "Eastern European Standard Time", "EEST",
  252.         // "Eastern European Daylight Time", "EEDT" /*Kiev*/},
  253.         // zh
  254.         {"CTT", "China Standard Time", "CST",
  255.          "China Standard Time", "CDT" /*Peking*/},
  256.         {"Asia/Shanghai", "China Standard Time", "CST",
  257.          "China Standard Time", "CDT" /*Peking*/},
  258.         // zh_TW
  259.         //{"CTT", "Taiwan Standard Time", "TST",
  260.         // "Taiwan Standard Time", "TST" /*Taipei*/},
  261.     };
  262.  
  263.     private static final String kLocalPatternChars = "GyMdkHmsSEDFwWahKz";
  264.  
  265.     static final Object[][] contents = {
  266.         {"zoneStrings",         kZoneStrings},
  267.         {"localPatternChars",   kLocalPatternChars},
  268.     };
  269. }
  270.